.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.sidebar {
    width: 300px;
    margin: 10px;
    height: fit-content;
    border: 0;
    border-spacing: 0;
    position: sticky;
    top: 0px;
}

.sidebar tr,
.sidebar td {
    padding: 0;
}

.sidebar input[type='text'] {
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: all 0.1s;
    outline: none;
}

.sidebar input[type='text']:focus {
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
    border-color: #66afe9;
}

.sidebar input[type='button'] {
    width: 100%;
    height: 34px;
    font-size: 14px;
    color: #FFF;
    background-color: #72c02c;
    border: 0;
    border-radius: 0 4px 4px 0;
    transition: all 0.1s;
    outline: none;
    cursor: pointer;
    font-weight: 400;
    padding: 7px 13px;
    white-space: nowrap;
}

.sidebar .categories {
    border-radius: 5px;
    border: 1px solid #E4E3E3;
    margin: 10px 0;
    width: 100%;
    font-size: 0.9em;
    user-select: none;
    text-align: left;
    color: #333;
    overflow: hidden;
}

.sidebar .categories p {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    color: #444;
    font-weight: 500;
    font-size: 0.9em;
    margin: 0;
    padding: 1em ;
    border-bottom: 2px dotted #ddd;
}

.sidebar .categories p:hover {
    background: #EEE;
}

.sidebar .categories .danger {
    color: #d90014 !important;
}





.main {
    flex: 1;
    text-align: center;
    min-width: 320px;
}

.main .gallery {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #EEE;
}

.main .gallery img {
    height: 130px;
    margin: 0 auto 0 0;
    outline:1px solid #EEE;
    border-radius: 2px;
}

.main .gallery p {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    color: #444;
    font-weight: 500;
    font-size: 0.9em;
    margin: 10px;
    flex: 1;
    min-width: 250px;
}

.main .gallery p:hover {
    text-decoration: underline;
}